<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>班次审核管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/schedef/tSchedefAudit/">班次审核列表</a></li>
		<%-- <shiro:hasPermission name="schedef:tSchedefAudit:edit"><li><a href="${ctx}/schedef/tSchedefAudit/form">班次审核添加</a></li></shiro:hasPermission> --%>
	</ul>
	<form:form id="searchForm" modelAttribute="tSchedef" action="${ctx}/schedef/tSchedefAudit/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li><label>班次名称：</label><form:input path="schename" maxlength="50" class="input-medium"/></li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr><th>班次名称</th><th>班次类型</th><th>发车日期类型</th>
			<th>车辆数</th><th>座位数</th><th>预售天数</th><th>状态</th>
				<shiro:hasPermission name="schedef:tSchedefAudit:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="tSchedefAudit">
			<tr>
				<td>${tSchedefAudit.schename}</td>
				<td>${fns:getDictLabel(tSchedefAudit.schetype, 'T_Schede_Type', '无')}</td>
				<td>
				<input	type="checkbox"  disabled=“disabled”
					<c:choose><c:when test="${fn:substring(tSchedefAudit.departtype,0,1) eq 1 }">checked="true" value="1"</c:when><c:otherwise >value="0"</c:otherwise></c:choose> />周一
				<input type="checkbox"  disabled=“disabled”
					<c:choose><c:when test="${fn:substring(tSchedefAudit.departtype,2,3) eq 1 }">checked="true" value="1"</c:when><c:otherwise >value="0"</c:otherwise></c:choose> />周二
				<input type="checkbox"  disabled=“disabled”
					<c:choose><c:when test="${fn:substring(tSchedefAudit.departtype,4,5) eq 1 }">checked="true" value="1"</c:when><c:otherwise >value="0"</c:otherwise></c:choose> />周三
				<input type="checkbox"  disabled=“disabled”
					<c:choose><c:when test="${fn:substring(tSchedefAudit.departtype,6,7) eq 1 }">checked="true" value="1"</c:when><c:otherwise >value="0"</c:otherwise></c:choose> />周四
				<input type="checkbox"  disabled=“disabled”
					<c:choose><c:when test="${fn:substring(tSchedefAudit.departtype,8,9) eq 1 }">checked="true" value="1"</c:when><c:otherwise >value="0"</c:otherwise></c:choose> />周五
				<input type="checkbox"  disabled=“disabled”
					<c:choose><c:when test="${fn:substring(tSchedefAudit.departtype,10,11) eq 1 }">checked="true" value="1"</c:when><c:otherwise >value="0"</c:otherwise></c:choose> />周六
				<input type="checkbox"  disabled=“disabled”
					<c:choose><c:when test="${fn:substring(tSchedefAudit.departtype,12,13) eq 1 }">checked="true" value="1"</c:when><c:otherwise >value="0"</c:otherwise></c:choose> />周日
</td>
				<td>${tSchedefAudit.vehiclenum}</td>		
				<td>${tSchedefAudit.totalseats}</td>
				<td>${tSchedefAudit.preselldate}</td>
				<td>${fns:getDictLabel(tSchedefAudit.auditstatus, 'auditstatus', '无')}</td>
				<shiro:hasPermission name="schedef:tSchedefAudit:edit"><td>
					<a href="${ctx}/schedef/tSchedefAudit/form?id=${tSchedefAudit.scheid}">审核</a>
					<%-- <a href="${ctx}/schedef/tSchedefAudit/delete?id=${tSchedefAudit.id}" onclick="return confirmx('确认要删除该班次审核吗？', this.href)">删除</a> --%>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>